package com.quincy.service;

import com.quincy.pojo.Comments;
import com.quincy.pojo.Videos;
import com.quincy.utils.PagedResult;

import java.util.List;

/**
 * Created by Quincy on 2018/5/26.
 */
public interface VideoService {
    /**
     * @Description: 保存视频
     */
    public String saveVideo(Videos video);

    /**
     * @Description: 修改视频的封面
     */
    public void updateVideo(String videoId, String coverPath);

    /**
     * @Description: 分页查询视频列表
     */
    public PagedResult getAllVideos(Videos video, Integer isSaveRecord, Integer page, Integer pageSize);

    /**
     * @Description: 湖区热搜词列表
     */
    public List<String> getHotwords();

    /**
     * @Description: 用户喜欢视频/点赞视频
     */
    public void userLikeVideo(String userId, String videoId, String videoCreaterId);

    /**
     * @Description: 用户不喜欢视频/取消点赞视频
     */
    public void userUnLikeVideo(String userId, String videoId, String videoCreaterId);

    public PagedResult queryMyFollowVideos(String userId, Integer page, Integer pageSize);

    public PagedResult queryMyLikeVideos(String userId, Integer page, Integer pageSize);

    /**
     * @Description: 用户留言
     */
    public void saveComment(Comments comment);

    /**
     * @Description: 留言分页
     */
    public PagedResult getAllComments(String videoId, Integer page, Integer pageSize);
}
